Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7112836
index.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
777 B
Referenced Files
None
Subscribers
None
index.ts
View Options
import
_locreq
from
"locreq"
;
import
Sealious
from
"sealious"
;
import
TheApp
from
"./app"
;
const
locreq
=
_locreq
(
__dirname
);
declare
module
"koa"
{
interface
BaseContext
{
$context
:
Sealious
.
Context
;
$app
:
TheApp
;
$body
:
Record
<
string
,
unknown
>
;
}
}
export
const
app
=
new
TheApp
();
void
app
.
start
()
.
then
(()
=>
{
//populate scripts go here
if
(
process
.
env
.
SEALIOUS_SANITY
===
"true"
)
{
console
.
log
(
"Exiting with error code 0"
);
process
.
exit
(
0
);
}
})
.
catch
((
error
)
=>
{
console
.
error
(
error
);
if
(
process
.
env
.
SEALIOUS_SANITY
===
"true"
)
{
console
.
log
(
"EXITING WITH STATUS 1"
);
process
.
exit
(
1
);
}
});
export
const
router
=
app
.
HTTPServer
.
router
;
require
(
"./routes/index"
);
app
.
HTTPServer
.
addStaticRoute
(
"/"
,
locreq
.
resolve
(
"public"
));
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Jul 4, 06:39 (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
799815
Default Alt Text
index.ts (777 B)
Attached To
Mode
rPLAY Sealious playground
Attached
Detach File
Event Timeline
Log In to Comment