mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-02 08:12:42 -06:00
.tutorial
git-svn-id: svn://ultimatepp.org/upp/trunk@5196 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
344842f674
commit
bd755a58cf
3 changed files with 6 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ uses
|
|||
Skylark;
|
||||
|
||||
file
|
||||
favicon.png,
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
|
|
|
|||
BIN
tutorial/Skylark01/favicon.png
Normal file
BIN
tutorial/Skylark01/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 445 B |
|
|
@ -25,6 +25,11 @@ SKYLARK(CatchAll, "**")
|
|||
http.Redirect(HomePage);
|
||||
}
|
||||
|
||||
SKYLARK(Favicon, "/favicon.ico")
|
||||
{
|
||||
http.ContentType("image/png") << LoadFile(GetDataFile("favicon.png"));
|
||||
}
|
||||
|
||||
struct MyApp : SkylarkApp {
|
||||
MyApp() {
|
||||
root = "myapp";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue