Skip to content
Discussion options

You must be logged in to vote

@aphilas I haven't tested it, since it depends on what SMS API you are using, but you could try creating a main.go file with the following content:

package main

import (
    "log"
    "net/http"
    "time"

    "github.com/labstack/echo/v5"
    "github.com/pocketbase/pocketbase"
    "github.com/pocketbase/pocketbase/apis"
    "github.com/pocketbase/pocketbase/core"
    "github.com/pocketbase/pocketbase/models"
    "github.com/pocketbase/pocketbase/tools/rest"
    "github.com/pocketbase/pocketbase/tools/security"
    "github.com/pocketbase/pocketbase/tools/types"
)

func main() {
    app := pocketbase.New()

    app.OnBeforeServe().Add(func(e *core.ServeEvent) error {
        // adds `POS…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aphilas
Comment options

@AKRking
Comment options

Answer selected by aphilas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants