mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
Added: some static root pages
This commit is contained in:
parent
5dc3c340a2
commit
6d1e3971df
@ -1,25 +0,0 @@
|
||||
package handlers
|
||||
|
||||
// func New(params Params) Result {
|
||||
// return Result{
|
||||
// Handlers: []http.ApiHanlder{},
|
||||
// }
|
||||
// }
|
||||
|
||||
// func Register(router fiber.Router, db *gorm.DB) error {
|
||||
// cfg := config.GetConfig()
|
||||
|
||||
// users := repositories.NewUsersRepository(db)
|
||||
// devices := repositories.NewDevicesRepository(db)
|
||||
// messages := repositories.NewMessagesRepository(db)
|
||||
|
||||
// validator := validator.New()
|
||||
// authSvc := services.NewAuthService(users, devices)
|
||||
// pushSvc := services.NewPushService(cfg.FCM.CredentialsJSON)
|
||||
// messagesSvc := services.NewMessagesService(pushSvc, messages)
|
||||
|
||||
// newMobileHandler(validator, authSvc, messagesSvc).register(router.Group("/mobile/v1"))
|
||||
// newThirdPartyHandler(validator, authSvc, messagesSvc).register(router.Group("/3rdparty/v1"))
|
||||
|
||||
// return nil
|
||||
// }
|
||||
@ -8,6 +8,7 @@ import (
|
||||
var Module = fx.Module(
|
||||
"handlers",
|
||||
fx.Provide(
|
||||
http.AsRootHandler(newRootHandler),
|
||||
http.AsApiHandler(newThirdPartyHandler),
|
||||
http.AsApiHandler(newMobileHandler),
|
||||
),
|
||||
|
||||
16
internal/sms-gateway/handlers/root.go
Normal file
16
internal/sms-gateway/handlers/root.go
Normal file
@ -0,0 +1,16 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
type rootHandler struct {
|
||||
}
|
||||
|
||||
func (h *rootHandler) Register(app *fiber.App) {
|
||||
app.Static("/", "web/static")
|
||||
}
|
||||
|
||||
func newRootHandler() *rootHandler {
|
||||
return &rootHandler{}
|
||||
}
|
||||
28
web/static/getting-started.html
Normal file
28
web/static/getting-started.html
Normal file
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Getting Started - Android SMS Gateway</title>
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<h1><span id="underline">Getting Started</span> - Android SMS Gateway</h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<h2>Step 1: Installation</h2>
|
||||
<p>Here you provide instructions about how to install your application.</p>
|
||||
|
||||
<h2>Step 2: Configuration</h2>
|
||||
<p>Here you provide instructions about how to configure your application after it has been installed.</p>
|
||||
|
||||
<h2>Step 3: Usage</h2>
|
||||
<p>Here you provide instructions about how to use your application.</p>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
BIN
web/static/images/logo.png
Normal file
BIN
web/static/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
62
web/static/index.html
Normal file
62
web/static/index.html
Normal file
@ -0,0 +1,62 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Android SMS Gateway</title>
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<h1>Android <span id="underline">SMS Gateway</span></h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<img src="images/logo.png" alt="Project logo">
|
||||
<p>Android SMS Gateway turns your Android smartphone into an SMS gateway. It's a lightweight application
|
||||
allowing you to send SMS messages programmatically via API. This makes it ideal for integrating SMS
|
||||
functionality into your own applications or services.</p>
|
||||
|
||||
<h2>Features</h2>
|
||||
<ul>
|
||||
<li>Send SMS programmatically: Use our API to send messages directly from your own applications or services.
|
||||
</li>
|
||||
<li>Supports Android 5.0 and above: The application is compatible with Android 5.0 and later versions.</li>
|
||||
<li>Message status tracking: Monitor the status of your sent messages in real-time.</li>
|
||||
<li>Starts at boot: The application starts running as soon as your device boots up.</li>
|
||||
<li>Prevents sleep mode: Your device won't go to sleep while the application is running, ensuring continuous
|
||||
service.</li>
|
||||
</ul>
|
||||
|
||||
<h2>Ideal For</h2>
|
||||
<ul>
|
||||
<li>Notifications</li>
|
||||
<li>Alerts</li>
|
||||
<li>Two-factor authentication codes</li>
|
||||
</ul>
|
||||
|
||||
<h2>Project Stage</h2>
|
||||
<p>The project is currently in the MVP stage. We're actively working on adding more features and improving the
|
||||
existing ones.</p>
|
||||
|
||||
<h2>Get Started</h2>
|
||||
<p>Check out our <a href="getting-started.html">Getting Started Guide</a> to learn how to install and use
|
||||
Android SMS Gateway.</p>
|
||||
|
||||
<h2>Contributing</h2>
|
||||
<p>Interested in contributing? Read our <a href="contributing.html">Contributing Guide</a> to find out how you
|
||||
can help.</p>
|
||||
|
||||
<h2>License</h2>
|
||||
<p>This project is licensed under the <a href="license.html">Apache License 2.0</a>.</p>
|
||||
|
||||
<h2>Contact</h2>
|
||||
<p>If you have any questions or suggestions, feel free to <a
|
||||
href="https://github.com/username/repo/issues/new">create an issue</a> or <a
|
||||
href="mailto:email@example.com">send us an email</a>.</p>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
40
web/static/styles.css
Normal file
40
web/static/styles.css
Normal file
@ -0,0 +1,40 @@
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 80%;
|
||||
margin: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #50a8a8;
|
||||
color: white;
|
||||
padding-top: 30px;
|
||||
min-height: 70px;
|
||||
border-bottom: #396969 3px solid;
|
||||
}
|
||||
|
||||
header a {
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
float: left;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
header #underline {
|
||||
color: #396969;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #396969;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user