Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1263279
index.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
633 B
Referenced Files
None
Subscribers
None
index.ts
View Options
import
_locreq
from
"locreq"
;
import
Sealious
from
"sealious"
;
import
TheApp
from
"./app"
;
import
homepage
from
"./routes/homepage"
;
import
tasks
from
"./routes/tasks"
;
import
login
from
"./routes/login"
;
const
locreq
=
_locreq
(
__dirname
);
declare
module
"koa"
{
interface
BaseContext
{
$context
:
Sealious
.
Context
;
$app
:
TheApp
;
$body
:
Record
<
string
,
unknown
>
;
}
}
const
app
=
new
TheApp
();
void
app
.
start
();
const
router
=
app
.
HTTPServer
.
router
;
router
.
use
(
"/"
,
homepage
.
routes
());
router
.
use
(
"/tasks"
,
tasks
.
routes
());
router
.
use
(
"/login"
,
login
.
routes
());
app
.
HTTPServer
.
addStaticRoute
(
"/"
,
locreq
.
resolve
(
"public"
));
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Jan 24, 16:50 (7 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
601473
Default Alt Text
index.ts (633 B)
Attached To
Mode
rPLAY Sealious playground
Attached
Detach File
Event Timeline
Log In to Comment